package com.zr.inquiry.model.vo;

import lombok.Data;

import javax.validation.Valid;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.Date;
import java.util.List;

/**
 * Created by 86151 on 2019/1/7.
 */
@Data
public class InquiryUpdateVo {
    @NotNull(message = "订单号不能为空！")
    private String requestForQuotationId;
    @NotNull(message = "询价类型不能为空！")
    private Integer type;
    @NotNull(message = "询价状态不能为空！")
    private Integer inquiryStatus;
    @NotNull(message = "含税类型不能为空！")
    private Integer isTax;
    @NotNull(message = "法人ID不能为空！")
    private Integer legalPersonId;
//    @NotNull(message = "法人名称不能为空！")
    private String legalPersonName;
//    @NotNull(message = "创建id不能为空！")
    private Integer creatorId;
    @NotNull(message = "币别不能为空！")
    private Integer currencyCode;
    @NotNull(message = "开始时间不能为空！")
//    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "Asia/Shanghai")
    private Date startTime;
    @NotNull(message = "结束时间不能为空！")
    private Date endTime;
    @NotNull(message = "创建时间不能为空！")
    private Date createTime;
    @NotEmpty(message = "备件明细不能为空！")
    @Valid
    private List<InquirySpareVo> inquiryDetailsList;
    @NotEmpty(message = "供应商明细不能为空！")
    @Valid
    private List<InquirySupplierVo> supplierDetailsList;

}
